package com.sxpi.chapter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sxpi.chapter.pojo.User;

/**
 * @Author: 董伟豪
 * @Date: 2022/12/30 16:47
 */
public interface IUserService extends IService<User> {

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    User getUser(Long id);

    /**
     * 用户购买课程
     * @param id
     * @return
     */
    String buyCourse(Long id,Long courseId);

    String buyCourseDesign(Long id,Long courseId);
}
